<?php   // $Id: bon_modif_date.php 208 2008-06-08 12:10:30Z pcoustillas $ ?>
<?php
/*Copyright (C) 2008 Pierre Coustillas
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors: Pierre Coustillas*/

require_once("include/verif.php");

require_once("include/config/common.php");
require_once("include/utils.php");


$num_bon=isset($_POST['num_bon'])?$_POST['num_bon']:"";
$date=isset($_POST['date'])?$_POST['date']:"";

$date=date_to_sql($date);


$sql_maj_bon="UPDATE ${tblpref}bon_comm SET date='$date' WHERE num_bon=$num_bon";
mysql_query($sql_maj_bon) or die("Erreur SQL, mise à jour date bon !<br/>$sql_maj_bon<br/>" . mysql_error());
//echo $sql_maj_fact;

header("Location: bon_edit.php?num_bon=$num_bon");


?>